
const routerMap = [
    {
      path: '/login',
      component: (resolve) => require(['../views/user/login.vue'], resolve)
    },
    {
      path: '/reg',
      component: (resolve) => require(['../views/user/reg.vue'], resolve)
    },
    {
      path: '/',
      component: (resolve) => require(['../views/index.vue'], resolve)
    },
    {
      path: '/category/:catid',
      component: (resolve) => require(['../views/category/category.vue'], resolve)
    },
    {
      path: '/item/:itemid',
      component: (resolve) => require(['../views/category/item.vue'], resolve)
    },
    {
      path: '/search',
      component: (resolve) => require(['../views/index/search.vue'],resolve)
    },
    {
      path: '*',
      component: (resolve) => require(['../views/errorPage.vue'], resolve)
    }
  ]

export default routerMap;